/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef GEN_OPTICAL_MODULE_POWER_INTERFACE_H
#define GEN_OPTICAL_MODULE_POWER_INTERFACE_H

#include <device_tree/base.h>

namespace dev::gen {

class MC_API OpticalModule_Power : public mc::engine::interface<OpticalModule_Power> {
public:
    MC_INTERFACE("bmc.dev.OpticalModule.Power")

    property<std::vector<double>> RXInputPowerMilliWatts;       ///< 接收功率
    property<std::vector<double>> TXOutputPowerMilliWatts;      ///< 发送功率
    property<double>              RXPowerUpperThresholdCritical; ///< 接收功率告警上限阈值
    property<double>              RXPowerLowerThresholdCritical; ///< 接收功率告警下限阈值
    property<double>              RXPowerUpperThresholdWarning;  ///< 接收功率警告上限阈值
    property<double>              RXPowerLowerThresholdWarning;  ///< 接收功率警告下限阈值
    property<double>              TXPowerUpperThresholdCritical; ///< 发送功率告警上限阈值
    property<double>              TXPowerLowerThresholdCritical; ///< 发送功率告警下限阈值
    property<double>              TXPowerUpperThresholdWarning;  ///< 发送功率警告上限阈值
    property<double>              TXPowerLowerThresholdWarning;  ///< 发送功率警告下限阈值
};
} // namespace dev::gen

#endif // GEN_OPTICAL_MODULE_POWER_INTERFACE_H
